import { h } from 'vue'
import {callConfirmMethod} from '@/common/layer-com-utils.js'
import msgDetailedView from './msg-detailed-view.vue'

export function layerMsgDetailedView(content){
    let confirmMethod=[];
    layer.open({
        title:`信息详细`,
        type:1,
        area:[`520px`,`520px`],
        content:h(msgDetailedView,{
            content,
            callback:(arrayFn)=>confirmMethod=arrayFn
        }), 
        appContext:getApp().$vm.$.appContext,
        shade: true, 
        shadeClose:false,
        btn: [{
            text:`知晓并关闭`, 
            callback: (layerId) =>callConfirmMethod.call(this,confirmMethod[0],layerId)
        }]
    })
}